home *** CD-ROM | disk | FTP | other *** search
- global gMasterData
-
- on printButton
- if iAmActivated(gMasterData) then
- getPrintData()
- set vThisField to string(getUserArea(gMasterData)) && "field"
- print(the text of member vThisField)
- else
- alert("Printing is unavailable until an activity is completed.")
- end if
- end
-
- on getPrintData
- set vThisField to string(getUserArea(gMasterData)) && "field"
- set the text of member vThisField to EMPTY
- set vTempText to EMPTY
- put "---- An Action Plan ----------" & RETURN & RETURN after vTempText
- put "Use this activity to work through a decision you may be considering and would like to take action on." & RETURN & RETURN after vTempText
- put getBigString() & RETURN & RETURN after vTempText
- set the text of member vThisField to vTempText
- end
-
- on getBigString
- set vText to EMPTY
- repeat with X = 1 to 6
- put line X of field "print text" & RETURN after vText
- put the text of member ("pfield" & string(X)) of castLib "Shared" & RETURN after vText
- end repeat
- return vText
- end
-